import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
import {
  tabBar,
  tabBarPages,
} from './src/layouts/fg-tabbar/tabbarList'

export default defineUniPages({
  globalStyle: {
    navigationStyle: 'default',
    navigationBarTitleText: 'unibest',
    navigationBarBackgroundColor: '#F8F8F8',
    navigationBarTextStyle: 'black',
    backgroundColor: '#F8F8F8',
  },
  easycom: {
    autoscan: true,
    custom: {
      '^fg-(.*)': '@/components/fg-$1/fg-$1.vue',
      '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
      '^(?!z-paging-empty)z-paging(.*)': 'z-paging/components/z-paging$1/z-paging$1.vue',
    },
  },
  // 你可以在这里配置 pages
  pages: [
  ],
  tabBar: {
    ...tabBar,
    list: tabBarPages.map(pagePath => ({ pagePath })),
  },
})
